package cn.matrix42.potoo.lang.window;

public class SlidingWindow<T> implements Window<T> {

    private final int windowSize;
    private final int slidSize;

    public SlidingWindow(int windowSize, int slidSize) {
        this.windowSize = windowSize;
        this.slidSize = slidSize;
    }

    public int getWindowSize() {
        return windowSize;
    }

    public int getSlidSize() {
        return slidSize;
    }

    public static <T> SlidingWindow<T> of(int windowSize, int slidSize) {
        return new SlidingWindow<>(windowSize, slidSize);
    }
}
